From abca28360cbc8e00088096125a63b7429f2d8d0a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 13 Jan 2015 19:56:48 -0800 Subject: [PATCH] Clarify that features are actually sets of features Closes #938 --- src/doc/manifest.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/doc/manifest.md b/src/doc/manifest.md index f86484958..08d0016e8 100644 --- a/src/doc/manifest.md +++ b/src/doc/manifest.md @@ -201,7 +201,8 @@ Cargo supports **features** to allow expression of: `postgres` package, the `postgres-macros` package, and possibly other packages (such as development-time mocking libraries, debugging tools, etc.) -The format for specifying features is: +A feature of a package is either an optional dependency, or a set of other +features. The format for specifying features is: ```toml [package] @@ -210,7 +211,9 @@ name = "awesome" [features] # The "default" set of optional packages. Most people will -# want to use these packages, but they are strictly optional +# want to use these packages, but they are strictly optional. +# Note that `session` is not a package but rather another +# feature listed in this manifest. default = ["jquery", "uglifier", "session"] # The "secure-password" feature depends on the bcrypt package. -- 2.30.2